﻿<table cellspacing="0" cellpadding="0" class="cssgrid">
    <tbody>
        <tr class="category">
            <td width="30px" class="headercart productcategory">
                <span class="norB">STT</span>
            </td>
            <td width="80px" class="headercart">
                <span class="norB">Account Id</span>
            </td>
            <td width="120px" class="headercart">
                <span class="norB">Tên tài khoản</span>
            </td>
            <td width="100px" class="headercart">
                <span class="norB">Loại tài khoản </span>
            </td>
            <td width="80px" class="headercart">
                <span class="norB">Thời gian</span>
            </td>           
            <td width="80px" class="headercart">
                <span class="norB">Tiền vào</span>
            </td>
            <td width="80px" class="headercart">
                <span class="norB">Tiền ra</span>
            </td>
            <td width="80px" class="headercart">
                <span class="norB">Kết quả</span>
            </td>
            <td width="80px" class="headercart">
                <span class="norB">Vòng</span>
            </td>
            <td width="180px" class="headercart">
                <span class="norB">Mô tả</span>
            </td>
        </tr>

        {#foreach $T.Items as payment}
        
        <tr>
            <td width="30px" class="headercart">
                <span>{$T.payment.RowNumber}</span>
            </td>
            <td width="80px" class="headercart">
                <span>{$T.payment.AccountId}</span>
            </td>
            <td width="120px" class="headercart">
                <span>{$T.payment.AccountName}</span>
            </td>
            <td width="100px" class="headercart">
                <span>{#if $T.payment.AccountTypeId==1}
                    Hilo
                    {#/if}
                    {#if $T.payment.AccountTypeId==2}
                    Facebook
                    {#/if}
                    {#if $T.payment.AccountTypeId==3}
                    Google
                    {#/if}
                    {#if $T.payment.AccountTypeId==4}
                    Yahoo
                    {#/if}
                    {#if $T.payment.AccountTypeId==5}
                    Twiter
                    {#/if}
                    {#if $T.payment.AccountTypeId==6}
                    Go.vn
                    {#/if}          
                </span>
            </td>
            <td width="100px" class="headercart">
                <span>{COMMON.jSonDateToString($T.payment.CreatedDate,2)}</span>
            </td>           
            <td width="80px" class="headercart">
                <span>{$T.payment.AuBet>0?(COMMON.formatMoney($T.payment.AuBet)+" vàng"):""}
                      {$T.payment.AgBet>0?(COMMON.formatMoney($T.payment.AgBet)+" bạc"):""}
                </span>
            </td>
            <td width="80px" class="headercart">
                <span>
                      {$T.payment.AuCurrent>0?(COMMON.formatMoney($T.payment.AuCurrent)+" vàng"):""}
                      {$T.payment.AgCurrent>0?(COMMON.formatMoney($T.payment.AgCurrent)+" bạc"):""}
                </span>
            </td>
            <td width="80px" class="headercart">
                <span>{$T.payment.FinishStatus}</span>
            </td>
            <td width="80px" class="headercart">
                <span>{COMMON.formatMoney($T.payment.Round)}</span>
            </td>           
            <td width="180px" style="text-align: left" class="headercart">
                <span>{$T.payment.Description}</span>
            </td>
        </tr>
        {#/for}
    </tbody>
</table>
